﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Header.ascx.cs" Inherits="CourseManager.View.UControls.Header" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:FitLayout runat="server" ID="FitLayout">
	<Items>
		<ext:Panel runat="server" ID="pnlMain" BodyStyle="background-image: url('Resources/Images/bj.png'); background-repeat: repeat-x"
			Header="false" Border="false">
			<Items>
				<ext:HBoxLayout ID="hBoxLayout" runat="server" Padding="5 5 15 5" Align="Top">
					<BoxItems>
						<ext:BoxItem>
							<ext:Image ID="ExtendImage1" Width="142" Height="43" runat="server" ImageUrl="Resources/Images/Logo.png"
								Visible="false" />
						</ext:BoxItem>
						<ext:BoxItem>
							<ext:Label runat="server" ID="lblTitle" Html="<div style='font-size: 22px; font-weight: bold;padding-left: 20px;margin-top: 10px;color:Gray;'>上海大学课程管理平台 beta</div>" />
						</ext:BoxItem>
						<ext:BoxItem Flex="1">
							<ext:Panel ID="epnSplit" runat="server" BaseCls="x-plain" />
						</ext:BoxItem>
						<ext:BoxItem>
							<ext:Panel ID="epnlButtons" runat="server" Width="210" Height="22" BaseCls="x-plain"
								Margins="15 0 0 0">
								<Items>
									<ext:Toolbar ID="etbTop" runat="server" Flat="true">
										<Items>
											<ext:Button ID="BtnHelp" runat="server" Icon="Help" Text="帮助" Width="55">
                                                <ToolTips>
                                                    <ext:ToolTip runat="server" Html="帮助" />
                                                </ToolTips>
                                            </ext:Button>
                                            <ext:Button ID="BtnLock" runat="server" Icon="YcPrivate" Text="锁定" Width="55" >
                                                <ToolTips>
                                                    <ext:ToolTip runat="server" Html="锁定" />
                                                </ToolTips>
                                                <DirectEvents>
                                                    <Click OnEvent="LockEvent" />
                                                </DirectEvents>
                                            </ext:Button>
                                            <ext:Button ID="BtnExit" runat="server" Icon="YcReviewReviewingPaneVertical" Text="退出" Width="55" >
                                                <ToolTips>
                                                    <ext:ToolTip runat="server" Html="退出" />
                                                </ToolTips>
                                                <DirectEvents>
                                                    <Click OnEvent="LogoutEvent">
														<EventMask ShowMask="true" Msg="正在退出系统, 请稍后..." />
                                                        <Confirmation Title="系统提示" Message="您确定要退出系统吗？" ConfirmRequest="true" />
                                                    </Click>
                                                </DirectEvents>
                                            </ext:Button>
										</Items>
									</ext:Toolbar>
								</Items>
							</ext:Panel>
						</ext:BoxItem>
					</BoxItems>
				</ext:HBoxLayout>
			</Items>
			<BottomBar>
				<ext:StatusBar ID="estbInfo" runat="server" Height="22" StatusAlign="Left" Flat="false"
					Visible="false">
					<Items>
						<ext:ToolbarTextItem runat="server" ID="lblUserInfo" />
						<ext:ToolbarTextItem ID="ExtendToolbarTextItem1" runat="server" Width="50" />
						<ext:ToolbarTextItem runat="server" ID="lblTime" />
						<ext:ToolbarTextItem ID="ExtendToolbarTextItem2" runat="server" Width="50" />
					</Items>
				</ext:StatusBar>
			</BottomBar>
		</ext:Panel>
	</Items>
</ext:FitLayout>

<ext:Window runat="server" ID="lockWindow" Modal="true" Closable="false" Header="true" Title="锁定" Border="true" Width="450" Height="200" Hidden="true"  Resizable="false" AnimateTarget="pnlMain" Plain="true" Icon="Lock" />

